package org.sixtythousand.joker.servlet.servlet;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author zhoulk
 * @date 2023/10/18 17:37
 * @desc
 */
public class ServletWrapper implements Servlet {


    protected Servlet servlet;

    public ServletWrapper(Servlet servlet) {
        this.servlet = servlet;
    }

    @Override
    public void init(ServletConfig config) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        servlet.service(req, res);
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
